xm: xen-api, pass-through: Dont pass empty opts
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Jun 2009 09:39:03 +0000 (10:39 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Jun 2009 09:39:03 +0000 (10:39 +0100)
commit431c6dde55324282e74679a57b15745146a990bf
tree09ad4ddb1401e6c6b246d80fe26e118ff415683f
parent823f4b145f3bc7fb04952f5e917201dcbfe8d980
xm: xen-api, pass-through: Dont pass empty opts

Internally xend doesn't know how to handle empty opts.
This code ensures that opts is only included in the sxpr
if its value will be non-empty.

Signed-off-by: Simon Horman <horms@verge.net.au>
tools/python/xen/util/pci.py
tools/python/xen/xend/XendDomainInfo.py